//
//  common.swift
//  microBlog
//
//  Created by HR_W on 16/5/19.
//  Copyright © 2016年 admin. All rights reserved.
//

import UIKit


let ScreenWidth = UIScreen.mainScreen().bounds.width

let ScreenHeight = UIScreen.mainScreen().bounds.height

let client_id = "36597523"

let client_secret = "ccd2d1e8bdab8d017acdbc22136c3a59"

let redirect_uri = "http://www.baidu.com"

let AppErrorTip = "没有网络,你还想看?"
let sharedDF = NSDateFormatter()


//定义通知的名称
let SwitchRootViewController = "SwitchRootViewController"

func randomColor() ->UIColor{

    let red = CGFloat(random() % 256) / 255
    let blue = CGFloat(random() % 256) / 255
    let green = CGFloat(random() % 256) / 255
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)

}